<%@ Page Language="c#" Debug="true" AutoEventWireup="True" Inherits="Sex.Sex" CodeBehind="default.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-5" />
    <link href="~/sex.css" rel="stylesheet" type="text/css" />
    <title>SEX Server Explorer</title>
    <script type="text/javascript">
        function NewWindow(Url) {
            window.open(Url, "Sex", "");
        }
        var WidthServer = 250;
        var HeightTitle = 40;
        var HeightDetails = 40;
        var HeightMenu = 25;
        function sizeDivs() {
            var Div_Title = document.getElementById("Div_Title");
            var Div_Details = document.getElementById("Div_Details");
            var Div_Menu = document.getElementById("Div_Menu");
            var Div_MenuServer = document.getElementById("Div_MenuServer");
            var Div_MenuItem = document.getElementById("Div_MenuItem");
            var Div_Content = document.getElementById("Div_Content");
            var Div_Server = document.getElementById("Div_Server");
            var Div_ContentItem = document.getElementById("Div_ContentItem");

            Div_ContentItem.style.height = (window.innerHeight - HeightTitle - HeightDetails - HeightMenu) + "px";
            Div_ContentItem.style.width = (window.innerWidth - WidthServer) + "px";
            Div_Server.style.height = window.innerHeight + "px";
        } 
        var resizeTimerID = null;
        function onResize() {
            if (resizeTimerID == null) {
                resizeTimerID = window.setTimeout(function () {
                    resizeTimerID = null;
                    sizeDivs();
                }, 500);
            }
        }
        onload = sizeDivs; onresize = onResize;
    </script>
    <script language="C#" runat="server">
/*##*/
    </script>
    <style type="text/css">
        /*#STYLE#*/
    </style>
</head>
<body id="MyBody">
    <form id="form1" runat="server">
    <div id="Div_Server">
        <asp:TreeView ID="Tree_Controls" runat="server" NodeIndent="10" ShowExpandCollapse="true"
            ImageSet="Arrows" BorderWidth="0" PopulateNodesFromClient="true" OnSelectedNodeChanged="Tree_Controls_SelectedNodeChanged">
            <SelectedNodeStyle Font-Underline="True" ForeColor="#DD5555" Font-Bold="true" HorizontalPadding="0px"
                VerticalPadding="0px" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="#88aabb" HorizontalPadding="0px"
                NodeSpacing="0px" VerticalPadding="0px" />
            <ParentNodeStyle Font-Bold="False" />
            <Nodes>
                <asp:TreeNode Value="" Text="SEX" Expanded="false" ToolTip="Server Explorer">
                    <asp:TreeNode Text="<span style='color:red'>S</span>erver" Expanded="false">
                        <asp:TreeNode Value="Server.Environment" ToolTip="Server Environment" Text="Server-Environment" />
                        <asp:TreeNode Value="Server.Modules" ToolTip="Modules loaded on Server" Text="Server-Modules" />
                        <asp:TreeNode Value="Server.MimeExtensions" ToolTip="MimeTypes from Server" Text="Server-MimeExtensions" />
                        <asp:TreeNode Value="Server.MimeTypes" ToolTip="MimeTypes from Server" Text="Server-MimeTypes" />
                        <asp:TreeNode Value="Server.Configuration" ToolTip="Web Configuration" Text="Server-WebSettings" />
                        <asp:TreeNode Value="Server.Context" ToolTip="Properties of Context Object" Text="Server-Context" />
                        <asp:TreeNode Value="Server.Server" ToolTip="Properties of Server Object" Text="Server-Server" />
                        <asp:TreeNode Value="Server.Application" ToolTip="Properties of Application Object"
                            Text="Server-Application" />
                        <asp:TreeNode Value="Server.Variables" ToolTip="ServerVariables" Text="Server-Variables" />
                        <asp:TreeNode Value="Server.Request" ToolTip="Properties of Request Object" Text="Connection-Request" />
                        <asp:TreeNode Value="Server.Response" ToolTip="Properties of Response Object" Text="Connection-Response" />
                        <asp:TreeNode Value="Server.Session" ToolTip="Properties of Session Object" Text="Connection-Session" />
                        <asp:TreeNode Value="Server.Cookies" ToolTip="Properties of Cookies Object" Text="Client-Cookies" />
                        <asp:TreeNode Value="Server.Browser" ToolTip="Your Browser Capabilities" Text="Client-Browser" />
                        <asp:TreeNode Value="Server.Mobile" ToolTip="Your Mobile Capabilities" Text="Client-Mobile" />
                    </asp:TreeNode>
                    <asp:TreeNode Text="<span style='color:red'>EX</span>plorer" Expanded="false">
                        <asp:TreeNode Value="Explorer.FileGroups" ToolTip="FileGroups" Text="File-Groups" />
                        <asp:TreeNode Value="Explorer.Extensions" ToolTip="Extensions" Text="File-Extensions" />
                        <asp:TreeNode Value="Explorer.ImageFlags" ToolTip="ImageFlags" Text="File-ImageFlags" />
                        <asp:TreeNode Value="Explorer.Exif" ToolTip="List of known Exif-Ids" Text="File-Exif-Data" />
                        <asp:TreeNode Value="Explorer.Templates" ToolTip="Templates used for Media-Files"
                            Text="Media-Templates" />
                        <asp:TreeNode Value="Explorer.Attributes" ToolTip="File or directory attributes"
                            Text="File-Attributes" />
                        <asp:TreeNode Value="Server.ViewState" ToolTip="Properties of ViewState" Text="Page-ViewState" />
                        <asp:TreeNode Value="About" ToolTip="About this Program" Text="Explorer.About" />
                    </asp:TreeNode>
                </asp:TreeNode>
            </Nodes>
        </asp:TreeView>
        <asp:TreeView ID="Tree_Content" runat="server" NodeIndent="10" ShowExpandCollapse="true"
            ImageSet="Arrows" BorderWidth="0" PopulateNodesFromClient="true" EnableClientScript="true"
            OnSelectedNodeChanged="Tree_Content_SelectedNodeChanged" OnTreeNodePopulate="Tree_Content_TreeNodePopulate"
            OnTreeNodeExpanded="Tree_Content_TreeNodeExpanded">
            <SelectedNodeStyle Font-Underline="True" ForeColor="#DD5555" Font-Bold="true" HorizontalPadding="0px"
                VerticalPadding="0px" />
            <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
            <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="#444444" HorizontalPadding="0px"
                NodeSpacing="0px" VerticalPadding="0px" />
            <ParentNodeStyle Font-Bold="False" />
        </asp:TreeView>
    </div>
    <div id="Div_Content">
        <div id="Div_Title">
            <asp:Label runat="server" ID="Label_Server" CssClass="ApplicationTitle" />
            <asp:Label runat="server" ID="Label_ServerPath" ToolTip="Path" CssClass="ApplicationTitle"
                ForeColor="#888800" />
            <asp:Label runat="server" ID="Label_PathItem" ToolTip="Path" CssClass="ApplicationTitle"
                ForeColor="#bbbb33" />
            <asp:Label runat="server" ID="Label_TitleItem" ToolTip="File or Directory Name" CssClass="ApplicationTitle"
                ForeColor="#bb3333" />
        </div>
        <div id="Div_Details" class="Details" runat="server">
        </div>
        <div id="Div_Menu">
            <div id="Div_MenuServer" runat="server" visible="false">
                <asp:Table runat="server" ID="Table_TreeCommands">
                    <asp:TableRow>
                        <asp:TableCell>
                            <asp:Menu runat="server" ID="Menu_TreeCommands" Orientation="Horizontal" RenderingMode="Table"
                                PathSeparator="." OnMenuItemClick="Menu_MenuItemClick" Visible="false">
                                <StaticMenuItemStyle ForeColor="White" Font-Names="Verdana" Font-Size="12pt" />
                                <StaticSelectedStyle BackColor="#88aabb" />
                                <Items>
                                    <asp:MenuItem Value="0" ToolTip="Show one level" Text="1&nbsp;" />
                                    <asp:MenuItem Value="1" ToolTip="Show two levels" Text="2&nbsp;" />
                                    <asp:MenuItem Value="2" ToolTip="Show three levels" Text="3&nbsp;" />
                                    <asp:MenuItem Value="3" ToolTip="Show four levels" Text="4&nbsp;" />
                                    <asp:MenuItem Value="9" ToolTip="Show all levels" Text="9&nbsp;" />
                                </Items>
                            </asp:Menu>
                        </asp:TableCell>
                        <asp:TableCell>
                            <asp:TextBox runat="server" ID="TextBox_Search" Width="50" Visible="false"></asp:TextBox>
                            <asp:LinkButton runat="server" CssClass="Menu_Command" ID="LinkButton_Search" CommandName="Search"
                                ToolTip="Search" OnCommand="LinkButton_Server_Command" Visible="false">Go</asp:LinkButton>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
            <div id="Div_MenuItem" runat="server">
                <asp:Panel runat="server" ID="Panel_ItemCommands">
                    <table>
                        <tr>
                            <td>
                                <asp:Menu runat="server" ID="Menu_File" Orientation="Horizontal" RenderingMode="Table"
                                    PathSeparator="." OnMenuItemClick="Menu_MenuItemClick">
                                    <StaticMenuItemStyle ForeColor="White" Font-Names="Verdana" Font-Size="12pt" />
                                    <StaticSelectedStyle BackColor="#88aabb" />
                                </asp:Menu>
                                <asp:Menu runat="server" ID="Menu_File_Template" Visible="false" Orientation="Horizontal"
                                    RenderingMode="Table" PathSeparator="." OnMenuItemClick="Menu_MenuItemClick">
                                    <StaticMenuItemStyle ForeColor="White" Font-Names="Verdana" Font-Size="12pt" />
                                    <StaticSelectedStyle BackColor="#88aabb" />
                                    <Items>
                                        <asp:MenuItem Value="FilePermissions" Text="Permissions" ToolTip="Show Permission" />
                                        <asp:MenuItem Value="FileHex" Text="Hex" ToolTip="Show Hex Representation (max. 65k)" />
                                        <asp:MenuItem Value="FileDownload" Text="Download" ToolTip="Download File" />
                                        <asp:MenuItem Value="FileFrame" Text="Frame" ToolTip="Load File in Frame" />
                                        <asp:MenuItem Value="FileNewWin" Text="NewWin" ToolTip="Load File in new window" />
                                        <asp:MenuItem Value="FileCode" Text="Code" ToolTip="Show Code (using SyntaxHighlighter from Alex Gorbatchev)" />
                                        <asp:MenuItem Value="FileInline" Text="Inline" ToolTip="Insert File Contents Inline" />
                                        <asp:MenuItem Value="FileEmbed" Text="Embed" ToolTip="Embed File Using Media-Template" />
                                        <asp:MenuItem Value="FileSpecial" Text="Special" ToolTip="Special Properties of this file type" />
                                        <asp:MenuItem Value="FileExif" Text="Exif" ToolTip="Exif Date of JPEG-Files" />
                                    </Items>
                                </asp:Menu>
                                <asp:Menu runat="server" ID="Menu_Directory" Orientation="Horizontal" RenderingMode="Table"
                                    PathSeparator="." OnMenuItemClick="Menu_MenuItemClick">
                                    <StaticMenuItemStyle ForeColor="White" Font-Names="Verdana" Font-Size="12pt" />
                                    <StaticSelectedStyle BackColor="#88aabb" />
                                    <Items>
                                        <asp:MenuItem Value="DirectoryPermissions" Text="Permissions" ToolTip="Show Directory Permissions" />
                                        <asp:MenuItem Value="DirectoryFrame" Text="Frame" ToolTip="Show Directory in Frame" />
                                        <asp:MenuItem Value="DirectoryList" Text="List" ToolTip="Show Directory as List" />
                                        <asp:MenuItem Value="DirectoryThumbs" Text="Thumbs" ToolTip="Show Directory using Thumbnails" />
                                    </Items>
                                </asp:Menu>
                                <asp:Panel runat="server" ID="Panel_LoginCommands">
                                    <asp:TextBox runat="server" ID="TextBox_Login" Width="50" Height="10" TextMode="Password"></asp:TextBox>
                                    <asp:LinkButton runat="server" CssClass="Menu_Command" ID="LinkButton_Login" Font-Names="Verdana"
                                        Font-Size="12pt" CommandName="Login" OnCommand="LinkButton_Server_Command">Login</asp:LinkButton>
                                </asp:Panel>
                            </td>
                            <td>
                                <asp:DropDownList runat="server" ID="DropDownList_Template" OnSelectedIndexChanged="DropDownList_Template_SelectedIndexChanged"
                                    AutoPostBack="True">
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
        <asp:Panel ID="Div_ContentItem" runat="server">
            <asp:Literal runat="server" ID="Literal_Content"></asp:Literal>
            <iframe runat="server" scrolling="auto" frameborder="0" width="100%" height="100%"
                id="iframe_Content" src=""></iframe>
        </asp:Panel>
    </div>
    </form>
    <%--asp:Literal ID="Literal_JS_Highlight_End" runat="server"></asp:Literal>
    <script type="text/javascript">
        SyntaxHighlighter.all()
    </script --%>
</body>
</html>
